package cn.ctbu.simple_score_manage.common;
import lombok.Getter;

@Getter
public enum REnum {
    UNKNOWN_ERROR(-999,"未知错误"),
    COMMON_ERROR(-10,"一般错误"),
    LOGIN_ERROR(-2,"出错了,不正确的用户名和密码"),
    SUCCESS(1,"成功"),
    REPETITIVE_NO(-3,"学号或工号不能为空且不能重复"),
    NEED_LOGIN(-4,"需要先进行登录"),
    DATA_ERROR(-5,"传入后端的数据出错");

    private final Integer code;
    private final String msg;

    REnum(Integer code,String msg){
        this.code = code;
        this.msg = msg;
    }


}
